function Studen(name,gender,num){
	this.stuName = name;
	this.gender = gender;
	this.num = num;
}
var stu = new Studen('袁澄','男',4);
var stu1 =new Studen('冯志超','男',3);
var stu2 = new Studen('李欣','女',2);
var stu3 = new Studen('王警位','男',1);
var stuArr = [stu,stu1,stu2,stu3];
console.info(stuArr);
document.write('<table border=\"1px\" align=\"center\">');
document.write('<thead><th>姓名</th><th>性别</th><th>座序</th></thead>');
for(var i = 0 ; i<stuArr.length ; i++){
	document.write('<tr>')
		document.write('<td>'+stuArr[i].stuName+'</td>');
		document.write('<td>'+stuArr[i].gender+'</td>');
		document.write('<td>'+stuArr[i].num+'</td>');
		console.info('<td>'+stuArr[i].stuName+'</td>');
		console.info('<td>'+stuArr[i].gender+'</td>');
		console.info('<td>'+stuArr[i].num+'</td>')
		document.write('</tr>')
}
document.write('</table>');
